package com.example.springboot.service;

import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.common.ResultCode;
import com.example.springboot.common.config.JwtTokenUtils;
import com.example.springboot.domain.po.Account;
import com.example.springboot.domain.po.TakeOff;
import com.example.springboot.domain.po.User;
import com.example.springboot.exception.CustomException;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author：伐柯梦姝
 * @Package：com.example.springboot.service
 * @Project：springboot
 * @name：TakeOffService
 * @Date：2025/2/24 21:58
 * @Filename：TakeOffService
 * @for:
 */
public interface TakeOffService extends IService<TakeOff> {

       List<TakeOff> GetAll();

       TakeOff takeOffRegister(TakeOff takeOff);

       TakeOff findById(Integer id);

       void delete(Integer id);

       PageInfo<TakeOff> findPage(TakeOff search, Integer pageNum, Integer pageSize);

       List<TakeOff> findByCondition(TakeOff search,Account user);

       TakeOff takeOffEdit(TakeOff takeOff);
}
